import http from '@/common/service/service.js';

export default {
	/**
	 * 登录
	 */
	mylogin(params) {
		console.log("登录页面", params)
		return http.post('/user/login', params)
	},
	/**
	 * 账号密码登录
	 */
	passwordLogin: function(data) {
		return http.post('/user/passwordLogin', data);
	},
	/**
	 * 手机号码登录
	 */
	phoneNoLogin(params) {
		return http.post('/user/phone-login', params);
	},
	/**
	 * 微信登录
	 */
	wxLogin(data) {
		return http.post('/login/wx', data);
	},
	register: function(data) {
		return http.post('/user/register', data)
	},
	/**
	 * 退出
	 */
	logout(params) {
		return http.post('/user/logout', params);
	},
	sendVerificationCode(params) {
		return http.get('/phone-message/send', params);
	},
	verifyPhoneCode(params) {
		return http.get('/phone-message/verify', params);
	},
	getUserInfo() {
		return http.get('/user/info');
	},
	getUserFollowInfo(params) {
		return http.get('/user/info/follow',params);
	},
	listUserFollow() {
		return http.get('/user/listFocusByActivity');
	},
	
	
	
	
	getUserData(params) {
		return http.get('/user/data/info',params);
	},
	getUserHula(params) {
		return http.get('/user/hula/info',params);
	},
	getProfile() {
		return http.get('/user/getProfile')
	},
	getUserCourseList(params) {
		return http.get('/course/user/page', params)
	},
	getSocietyList: function() {
		return http.get('/society/list');
	},




	bindWxAndPhone: function(data) {
		return http.post('/user/bindWxAndPhone', data)
	},
	bindAccount: function(data) {
		return http.post('/user/bindAccount', data)
	},
	bindPassword: function(data) {
		return http.post('/user/bindPassword', data);
	},
	
	
	updateInfo: function(data) {
		return http.post('/user/update', data)
	},
	
	auth: function(data) {
		return http.post('/user/auth', data);
	},
	
	toBeHular(data) {
		return http.post('/user/hula', data);
	},
	pageHular(params) {
		return http.get('/user/hula/page', params);
	},
	
	bindSchool: function(params) {
		return http.get('/school/in', params);
	},
	unbindSchool: function(params) {
		return http.get('/school/out', params);
	},
	
	
	bindClassTeam: function(params) {
		return http.get('/team/class-bind', params);
	},
	


	bindBasicInfo: function(data) {
		return http.post('/user/bindBasicInfo', data);
	},
	
	changeUserFollowStatus(params) {
		return http.get('/user/follow/change', params)
	},
}
